package com.project.estate.changerdetail.controller;

import com.project.estate.changerdetail.service.ChangerDetailService;
import com.project.estate.commons.bean.ChangeDetail;
import com.project.estate.commons.config.JsonResult;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/changerDetail")
public class ChangerDetailController {

    @Resource
    private ChangerDetailService changerdetailService;


    @PostMapping("/add_changerDetail")
    public JsonResult addchangerDetail(ChangeDetail changerdetail) {
        return changerdetailService.addchangerDetail(changerdetail);
    }
}
